package com.medisched.medisched.domain;

import java.util.Date;

/**
 * 用户对象 usertable
 * 
 * @author ruoyi
 * @date 2025-05-15
 */
public class Usertable 
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 用户名 */
    private String userName;

    /** 密码 */
    private String password;

    /** 性别：0男，1女 */
    private Long gender;

    /** 角色ID  ： 1管理员 2排班员 3医护人员*/
    private Long roleId;

    /** 所属科室ID */
    private Long departmentId;

    private Date createTime;

    /** 科室名称 */
    private String departmentName;

    /** 角色名称 */
    private String roleName;

    public Usertable() {
    }

    public Usertable(long serialVersionUID, Long id, String userName, String password, Long gender, Long roleId, Long departmentId, Date createTime, String departmentName, String roleName) {
        this.id = id;
        this.userName = userName;
        this.password = password;
        this.gender = gender;
        this.roleId = roleId;
        this.departmentId = departmentId;
        this.createTime = createTime;
        this.departmentName = departmentName;
        this.roleName = roleName;
    }

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }

    public void setPassword(String password) 
    {
        this.password = password;
    }

    public String getPassword() 
    {
        return password;
    }

    public void setGender(Long gender) 
    {
        this.gender = gender;
    }

    public Long getGender() 
    {
        return gender;
    }

    public void setRoleId(Long roleId) 
    {
        this.roleId = roleId;
    }

    public Long getRoleId() 
    {
        return roleId;
    }

    public void setDepartmentId(Long departmentId) 
    {
        this.departmentId = departmentId;
    }

    public Long getDepartmentId() 
    {
        return departmentId;
    }


    public String toString() {
        return "Usertable{serialVersionUID = " + serialVersionUID + ", id = " + id + ", userName = " + userName + ", password = " + password + ", gender = " + gender + ", roleId = " + roleId + ", departmentId = " + departmentId + "}";
    }

    /**
     * 获取
     * @return createTime
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 设置
     * @param createTime
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * 获取
     * @return departmentName
     */
    public String getDepartmentName() {
        return departmentName;
    }

    /**
     * 设置
     * @param departmentName
     */
    public void setDepartmentName(String departmentName) {
        this.departmentName = departmentName;
    }

    /**
     * 获取
     * @return roleName
     */
    public String getRoleName() {
        return roleName;
    }

    /**
     * 设置
     * @param roleName
     */
    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }
}
